<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>
  <link href="${ctx.resource}/css/goals.css" rel="stylesheet">
  <title>总结编辑页</title>
</head>
<body>
  <div class="page-group">
    <div class="page page-current">
      <header class="bar bar-nav fs-header-small">
        <a href="${ctx.host}/rounds/${courseRoundId}/result-report" class="icon icon-left pull-left"></a>
        <h1 class="title">总结</h1>
      </header>
      
      <div class="bar bar-footer">
        <a class="button save-button">保存</a>
      </div>
      
      <div class="content">
        <form action="${ctx.host}/rounds/${courseRoundId}/result-report/edit-summary" method="POST">
          <div class="list-block" style="margin-bottom: 0px;">
            <input type="hidden" name="_method" value="PATCH" />
            
            <div class="content-block-title">总结</div>
            <ul>
              <li>
                <div class="item-content">
                  <div class="item-inner">
                    <div class="item-input">
                      <textarea name="summary" rows="4" cols="2" placeholder="请输入对本周期的总结">${summary}</textarea>
                    </div>
                  </div>
                </div>
              </li>
            </ul>
            
            <div class="content-block-title">对教练想说的话</div>
            <ul>
              <li>
                <div class="item-content">
                  <div class="item-inner">
                    <div class="item-input">
                      <textarea name="wordsToCoach" rows="4" cols="2" placeholder="请输入对教练想说的话">${wordsToCoach}</textarea>
                    </div>
                  </div>
                </div>
              </li>
            </ul>
            
            <button type="submit" class="submit-btn" style="display: none;"></button>
          </div>
        </form>
      </div>
    </div>
  </div>
  
  <%@ include file="/WEB-INF/include/script.jsp"%>
  <d:resource root="${ctx.resource}/build" type="script" src="js/page/course/course-summary-edit.js" />
  <script type="text/javascript">
    require(['page/course/course-summary-edit'], function(page) {
      page.init({
        'courseRoundId': '${courseRoundId}'
      });
    })
  </script>
</body>
</html>